package wb.is.besti.edu.cd.emergency_responsesys.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MarkeInfo implements Serializable {
    private static final long serialVersionUID = -758459502806858414L;
    /**
     * 精度
     */
    private double latitude;
    /**
     * 纬度
     */
    private double longitude;
    /**
     * 图片ID，真实项目中可能是图片路径
     */
    private int imgId;
    /**
     * 商家名称
     */
    private String name;
    /**
     * 内容
     */
    private String contest;
    /**
     * 赞数量
     */
    private String time;

    public static List<MarkeInfo> infos = new ArrayList<>();

    private Events events;

    public MarkeInfo(double latitude, double longitude, int imgId, String name, String contest, String time) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.imgId = imgId;
        this.name = name;
        this.contest = contest;
        this.time = time;
    }

    public MarkeInfo(double latitude, double longitude, int imgId, String name, String contest, String time, Events events) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.imgId = imgId;
        this.name = name;
        this.contest = contest;
        this.time = time;
        this.events = events;
    }

    public MarkeInfo(double latitude, double longitude, String name, Events events) {
        this.latitude = latitude;
        this.longitude = longitude;
        this.name = name;
        this.events = events;
    }

    public Events getEvents() {
        return events;
    }

    public void setEvents(Events events) {
        this.events = events;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public int getImgId() {
        return imgId;
    }

    public void setImgId(int imgId) {
        this.imgId = imgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContest() {
        return contest;
    }

    public void setContest(String contest) {
        this.contest = contest;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
